<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script type="text/javascript">
//    var week="Sunday";
//    function  f1(){
//        console.log("星期："+week);
//    }
//    function f2(){
//        var week="Monday";
//        f1();
//    }
//    f2();
    function f2(){
        console.log(wees);
    }
    var wees="Monday";
    function f1(){
        var wees="Sunday";
        f2();
    }
    f1();
</script>
</body>
</html>